package com.bckj.fastboot.paid.biz.domain.refund.service;

import com.bckj.fastboot.core.execution.ExecutionProvider;
import com.bckj.fastboot.paid.api.constant.RefundExecutionNames;
import com.bckj.fastboot.paid.biz.domain.refund.context.RefundContext;
import org.springframework.stereotype.Component;

@Component
public class RefundOrderDomainService {

    public void refund(RefundContext ctx) {
        ExecutionProvider.get(RefundExecutionNames.REFUND_ORDER_CREATE).execute(ctx);
    }
}
